﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dixon_Q_Test
{
    class Program
    {
        static void Main(string[] args)
        {
            
            //Matrix m = new Matrix();
            //bool result = m.readDisxonTable("Dixon Q Table.txt");
            //listElement le = new listElement();
            //bool result = le.readDatabase("KhaoSat.txt");
            //le.sort();
            DixonQTest D = new DixonQTest("Dixon Q Table.txt", "KhaoSat.txt");
            bool result = D.detectOulier();
            D.writeData("outPut.txt");
            if (result == false)
            {
                Console.WriteLine("there're no oulier");
            }
            else
            {
                Console.WriteLine("detected and rejected a oulier");
            }
            //Console.WriteLine(result.ToString());
            Console.ReadLine();
        }
    }
}
